import java.util.Arrays;
import java.util.List;

import static java.util.stream.Collectors.toList;


public class TestBook {
    public static void main(String[] args) {
        List<Book> menu = Arrays.asList(
                new Book("《完美世界》",500),
                new Book("《平凡的世界》",40),
                new Book("《放风筝的少年》",660),
                new Book("《孤独是一个人的清欢》",450),
                new Book("《没有一条道路是重复的》",50),
                new Book("《追》",20)
        );

        List<String> bookName = menu.stream()
                .filter(e->e.getPrice()>100)
                .sorted((d1,d2)->d1.getPrice()-d2.getPrice())
                .map(Book::getName)
                .collect(toList());
        for (String name : bookName){
            System.out.println(name);
        }
    }
}
